#include"SharedMemory.hpp"

int main()
{
    SharedMemory shm;
    shm.Create();
    shm.Attach();
    shm.Print();
    while(1)
    {
        char ch = 0;
        shm.PopChar(&ch);
        std::cout << "读取出来：" << ch << std::endl;
        sleep(1);
    }
    shm.Detach();
    shm.Remove();

    return 0;
}